package jmu.zzh.alumnus.common.config;

import jmu.zzh.alumnus.common.utils.SnowFlake;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

@Configuration
public class SnowFlakeConfig {
    
    @Bean
    public SnowFlake snowFlake() {
        // 这里的workerId和dataCenterId可以根据实际情况配置
        return new SnowFlake(1, 1);
    }
} 